namespace Studu402 {
  // 运行时：正常js语法
  let str = 'hello';

  console.log(typeof str);//"string"

  let num = 42;
  console.log(typeof num);

  let bool = true;
  console.log(typeof bool);

  let obj = { key: "value" };
  console.log(typeof obj);

  let func = () => { };
  console.log(typeof func);

  // 类型层面的typeof
  class Person3{
    constructor(
      public name: string,
      public age: number,
      public isActive: boolean
    ){}
  }
  let p3 = new Person3('cjedhu', 22, false)
  type pType = typeof p3
  let str4="hdu"
  type str4Type = typeof str4
  






}